package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpWorkSafetyAuditProcess;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface BpWorkSafetyAuditProcessDao extends JpaRepository<BpWorkSafetyAuditProcess,Long> {

    BpWorkSafetyAuditProcess findByCertId(Long certId);

    List<BpWorkSafetyAuditProcess> getListByCertId(Long id);
    // Optional<BpWorkSafetyAuditProcess> findByCertId(Long certId);
}
